package com.cicc.wm.lock;

import java.io.Closeable;

/**
 * 锁操作类
 */
public interface LockRepository extends Closeable {

    boolean acquire(long threadId, String lockKey, long leaseTime);

    boolean isAcquired(long threadId, String lockKey);

    boolean delete(long threadId, String lockKey);

    boolean renew(long threadId, String lockKey);
}
